package com.dancw.user.web.index.controller;

import com.dancw.user.web.common.ResultWarp;
import com.dancw.user.web.index.fade.IndexFade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 但成王
 * @create 2018-10-30 23:47
 */
@RestController
@RequestMapping(value = "/index")
public class IndexController {

    @Autowired
    private IndexFade indexFade;

    @RequestMapping(value = "/list",method = RequestMethod.GET)
    public ResultWarp getList() {
        return indexFade.getList();
    }
}
